
  <div id="border">
  <form action="<?=site_url("property/gonew_property")?>" method="post" enctype="multipart/form-data"> 
  <div class="property_line_ccc"></div>
  <div style="background:url(<?=base_url();?>images/bg_propeties.jpg); width:980px; height:266px; color:#FFF; font-family:Arial, Helvetica, sans-serif;">

  <? include APPPATH."views/templates/common/property_search.php";?>
			<a class="property_ads" href="<?=site_url("property")?>"><div><?=$Z_TRANS->value('title_view_property')?></div></a>
          </div>
          <div style="background:#BD2031; height:2px;"></div>
		  
			 <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
             <td valign="top">       
                <table width="99%" border="0" align="center" id="usertitle">
                  <tr>
                    <td><h3><b><?=$Z_TRANS->value('menu_post_property')?><b></h3></td>
                    <td align="right"><a href="<?=site_url("property")?>"><div class="post_ads_big"><?=$Z_TRANS->value('title_view_property')?></div></a></td>
                  </tr>
                </table>
                <div id="content">
                <div class="user_line_border_top"></div>
                        <?php if(isset($message_errors)){?><div class="error_message" style="color:#BD2031; font-size:11px; line-height:20px;"><?=$message_errors;?></div><? }?>
                          <table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_title')?>:<span class="require">*</span></td>
                              <td class="ttd">
                                <div class="bordrTextbox"><input name="txtTitle" type="text" class="textbox" id="txtTitle" value="<?php if(isset($_POST['txtTitle']))echo set_value('txtTitle'); ?>" maxlength="60" /></div>
                              </td>
                            </tr>
                             <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_location_pro')?>:<span class="require">*</span></td>
                              <td class="ttd">
                              <div class="bordrTextbox"><span class="bordrTextbox" style="float:left; ">
                                <select name="cb_loc" size="0" class="textbox" mosreq="0" moslabel="City/Provinces" id="cb_loc">
                                  <?php 
                                   foreach($get_loc->result_array() as $rowGetLoc){
                                   $selected = isset($_POST['cb_loc']) && ($rowGetLoc["location_id"]== set_value('cb_loc')) ? "selected" : "";?>
                                  	<option value="<?=$rowGetLoc["location_id"]?>" <?=$selected?>><?=$rowGetLoc["location_name"]?></option>
                                  <? }?>
                                </select>
                              </span></div>
                              </td>
                            </tr>
                            
                             <tr>
                              <td align="right" class="ttd" valign="top"><?=$Z_TRANS->value('title_property_category')?>:<span class="require">*</span></td>
                              <td class="ttd">
                                <div class="bordrTextbox" style="float:left; ">
                                  <select name="cbo_cat" size="0" class="textbox" mosreq="0" id="cbo_cat">
                                	<?php foreach($pro_cat->result_array() as $row) {
                                	   $selected = isset($_POST['cbo_cat']) && ($row["prop_cat_id"]== set_value('cbo_cat')) ? "selected" : "";?>
                                     	<option value="<?=$row["prop_cat_id"]?>" <?=$selected?>><?=htmlspecialchars($row["prop_cat_name"])?></option>
                                	<?php } ?>
                                  </select>
                                </div>
                              </td>
                            </tr>
                            
                            <tr>
                              <td align="right" class="ttd" valign="top"><?=$Z_TRANS->value('title_property_type')?>:<span class="require">*</span></td>
                              <td class="ttd">
                                <div class="bordrTextbox" style="float:left; ">
                                  <? $pro_type = array("SALE","RENT"); ?>
                                  <select name="cbo_type" size="0" class="textbox" mosreq="0" id="cbo_type">
                                    <option value=" "></option>
                                    <? foreach($pro_type as $rowType){?>
                                    <? if(isset($_REQUEST['cbo_type'])) $selected = $_REQUEST['cbo_type']==$rowType ? "selected" : "";?>
                                    <option value="<?=$rowType?>" <?=$selected?>><?=$rowType?></option>
                                    <? }?>
                                  </select>
                                </div>
                              </td>
                            </tr>

                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_floors')?>:</td>
                              <td class="ttd">
								<table width="320" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="74">                              
                                        <div class="bordrTextbox" style="width:60px;">
                                        <select name="cbo_Floor" size="0" class="textbox" mosreq="0" moslabel="Flood" style="width:75px;" id="cbo_Floor">
                                        <option value=" " selected="selected"> </option>
                                          <? for($i=1; $i<=12; $i++) {?>
                                          <? if(isset($_POST['cbo_Floor'])) $selected = set_value('cbo_Floor')==$i ? "selected" : "";?>
                                          <option value="<?=$i?>" <?=$selected?>><?=$i?></option>
                                          <? }?>
                                        </select>
                                      	</div>
                                	  </td>
                                        <td width="66"><?=$Z_TRANS->value('title_beds_room')?>:</td>
                                        <td width="144"> 
                                        <div class="bordrTextbox" style="width:60px;">
                                        <select name="cbo_Bedroom" size="0" class="textbox" mosreq="0" moslabel="Bedroom" style="width:75px;" id="cbo_Bedroom">
                                        <option value=" " selected="selected"> </option>
                                          <? for($i=1; $i<=12; $i++) {?>
                                          <? if(isset($_POST['cbo_Bedroom'])) $selected = set_value('cbo_Bedroom')==$i ? "selected" : "";?>
                                          <option value="<?=$i?>" <?=$selected?>><?=$i?></option>
                                          <? }?>
                                        </select>
                                        </div>
                                        </td>
                                      </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td class="ttd" align="right"><?=$Z_TRANS->value('title_baths_room')?>:</td>
                              <td>
								<table width="320" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="74">                              
                                        <div class="bordrTextbox" style="width:60px;">
                                        <select name="cbo_bath" size="0" class="textbox" mosreq="0" moslabel="Flood" style="width:75px;" id="cbo_bath">
                                        <option value=" " selected="selected"> </option>
                                          <? for($i=1; $i<=12; $i++) {?>
                                          <? if(isset($_POST['cbo_bath'])) $selected = set_value('cbo_bath')==$i ? "selected" : "";?>
                                          <option value="<?=$i?>" <?=$selected?>><?=$i?></option>
                                          <? }?>
                                        </select>
                                      	</div>
                                	  </td>
                                        <td width="66"><?=$Z_TRANS->value('title_parking')?>:</td>
                                        <td width="144"><span class="bordrTextbox" style="width:60px;">
                                          <select name="cbo_parking" size="0" class="textbox" mosreq="0" moslabel="Bedroom" style="width:75px;" id="cbo_parking">
                                          <option value=" " selected="selected"> </option>
                                            <? for($i=1; $i<=12; $i++) {?>
                                            <? if(isset($_POST['cbo_parking'])) $selected = set_value('cbo_parking')==$i ? "selected" : "";?>
                                            <option value="<?=$i?>" <?=$selected?>>
                                              <?=$i?>
                                            </option>
                                            <? }?>
                                          </select>
                                        </span></td>
                                      </tr>
                              </table>
                              </td>
                            </tr>
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_phone')?>:</td>
                              <td class="ttd"><div class="bordrTextbox"><input name="txtFeatures" type="text" class="textbox" id="txtFeatures"  value="<?php if(isset($_POST['txtFeatures']))echo set_value('txtFeatures'); ?>" maxlength="100" /></div></td>
                            </tr>
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_description')?>:</td>
                              <td class="ttd">
                                <textarea name="txtDesc" rows="8" class="textbox" id="txtDesc" style="height:80px;width:280px;"><?php if(isset($_POST['txtDesc']))echo set_value('txtDesc'); ?></textarea>
                             </td>
                            </tr>
                           
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_price')?>:</td>
                              <td class="ttd"><table cellpadding="0" cellspacing="0"><tr><td><div class="bordrTextbox"><!--onkeypress="return onlyNumbers();"--><input name="txtPrice" type="text" class="textbox" id="txtPrice" value="<?php if(isset($_POST['txtPrice']))echo set_value('txtPrice'); ?>"  /></div></td>
                              <td style="color:#999;">&nbsp;</td></tr></table></td>
                            </tr>
                            
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_building_size')?>:</td>
                              <td class="ttd">
								<div class="bordrTextbox"><input name="txtBSize" type="text" class="textbox" id="txtBSize" value="<?php if(isset($_POST['txtBSize']))echo set_value('txtBSize'); ?>" maxlength="30" /></div>
                              </td>
                            </tr>
                            
                             <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_land_size')?>:</td>
                              <td class="ttd">
								<div class="bordrTextbox"><input name="txtLSize" type="text" class="textbox" id="txtLSize" value="<?php if(isset($_POST['txtLSize']))echo set_value('txtLSize'); ?>" maxlength="30" /></div>
                              </td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td><?=$Z_TRANS->value('title_image_format')?>: Jpeg, Jpg, Gif, <?=$Z_TRANS->value('title_or')?> Png <?=$Z_TRANS->value('title_size')?>: 3MB </td>
                             <tr>
                              <td align="right" valign="top" style="line-height:27px; padding-top:3px; padding-right:10px;">Picture 1:<br />Picture 2:<br />Picture 3:<br />Picture 4:<br />Picture 5:</td>
                              <td class="ttd">
                                  <input type="file" name="image1" value="<?php if(isset($_REQUEST['image1']))echo set_value('image1'); ?>" /><br />
                                  <input type="file" name="image2" value="<?php if(isset($_POST['image2']))echo set_value('image2'); ?>" /><br />
                                  <input type="file" name="image3" value="<?php if(isset($_POST['image3']))echo set_value('image3'); ?>" /><br />
                                  <input type="file" name="image4" value="<?php if(isset($_POST['image4']))echo set_value('image4'); ?>" /><br />
                                  <input type="file" name="image5" value="<?php if(isset($_POST['image5']))echo set_value('image5'); ?>" />
                              </td>
                            </tr>
                            
                            <tr>
                              <td>&nbsp;</td>
                              <td>              
                <?php 
                /** Validate captcha */
                if (!empty($_REQUEST['captcha'])) {
                    $request_captcha = htmlspecialchars($_REQUEST['captcha']);                
                    unset($_SESSION['captcha']);
                }?>
                <img src="<?=base_url();?>captcha/captcha.php" id="captcha" alt="" width="284" height="82" GALLERYIMG="no" />
                              </td>
                            </tr>
                            <tr>
                              <td align="right" class="ttd"><?=$Z_TRANS->value('title_type_the_code_shown')?>:<span class="require">*</span></td>
                              <td class="ttd"><input name="captcha" type="text" class="textbox" id="captcha-form" maxlength="30"/>
                              <div style="width:168px; float:right; padding-top:5px;">
                              <a href="#" onclick="
                                            document.getElementById('captcha').src='<?=base_url();?>captcha/captcha.php?'+Math.random();
                                            document.getElementById('captcha-form').focus();"
                                            id="change-image"><img src="<?=base_url();?>images/arrow_circle_double.png" alt="" width="16" height="16" align="absmiddle" /></a> <?=$Z_TRANS->value('Try_a_new_code')?></div>
                              </td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td height="50"><input type="button" value="<?=$Z_TRANS->value('title_back')?>" onclick="document.location='javascript:history.back(1)'" /> <input type="submit" name="btn_property" id="btn_property" value="<?=$Z_TRANS->value('title_post')?>" /></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                          </table>
            
          	</div>
    
                </td>
                <td width="254" valign="top">
                    <?php include APPPATH."views/templates/common/right_content.php"; ?>
                 </td>
                 
              </tr>
          </table>
        
        <!--Find report and location-->
		<? include APPPATH."views/templates/common/property_menu_bottom.php";?>

    </form>     
</div>